#include "ConditionNot.h"
#include <cassert>

ConditionNot::ConditionNot(const ICondition* _conditionToReverse) :
m_conditionToReverse(_conditionToReverse)
{
}

ConditionNot::~ConditionNot(void)
{
}

void	ConditionNot::AddSimpleCondition	(const ICondition* condition)
{
	assert(!"ConditionNot::AddSimpleCondition should not be called");
}

void	ConditionNot::AddSubCondition		(const ICondition* condition)
{
	assert(!"ConditionNot::AddSubCondition should not be called");
}

bool	ConditionNot::GetBoolean(void) const
{
	return !this->m_conditionToReverse->GetBoolean();
}

bool	ConditionNot::ContainsNode(char nodeId) const
{
	return this->m_conditionToReverse->ContainsNode(nodeId);
}